package com.hanamaki.day01;

import java.util.Scanner;

public class day01 {
    public static void main(String[] args) {
        int money=7980-1500;
        double money01=7980*0.8;
        int hh=100;
        String bb=hh>101?"正确":"错误";
        System.out.println(bb);
        System.out.println((3<<1)+(3<<2)+(3<<3)+(3<<5));
        if (money>money01){
            System.out.println("可以以旧换新");

        }else {
            System.out.println("不用以旧换新");
        }
        Scanner scanner = new Scanner(System.in);
        System.out.println("你的年龄是多少？");
        int a=scanner.nextInt();
        System.out.println("年龄"+a);
        System.out.println("你的爱好是什么？");
        String b=scanner.next();
        System.out.println("我的爱好是："+b);
        System.out.println("请输入小明卖了多少坏鸡蛋？");
        int c=scanner.nextInt();
        if (c<5){
            System.out.println("吃掉");
        }else {
            System.out.println("退货");
        }
        System.out.println("请输入数字A");
        int A=scanner.nextInt();
        System.out.println("请输入数字B");
        int B=scanner.nextInt();
        if ((A%B==0)||(A+B>1000)){
            System.out.println(A);
        }else {
            System.out.println(B);
        }
    }
}
